-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vm] upgrade move coverage tool #1679
Conversation
Wrong address format (0x0x...) caused by starcoin change of fmt::Display for AccountAddress. The change is applied for specific sdk reason. Currently there is no plan to fix it so we have the work around above. |
vm/move-coverage/src/coverage_map.rs
Outdated
pub fn output_map_to_file<M: Serialize, P: AsRef<Path>>(file_name: P, data: &M) -> Result<()> { | ||
let bytes = scs::to_bytes(data)?; | ||
let mut file = File::create(file_name)?; | ||
file.write_all(&bytes)?; | ||
Ok(()) | ||
} | ||
|
||
pub fn preprocess_address(literal: &str) -> &str { | ||
if literal.starts_with("0x0x") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这是哪里序列化 address 的时候手动拼接了一个 0x?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确认了一下,这个是统一地址格式时有些地方没有完全覆盖到,已经在libra这边处理了。
No description provided.